package com.demo.controller;

import com.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * @Author YuanYuan
 * @Date 2023/2/10
 * @Time 10:56
 */
@Controller
public class ModifyUser {
    @Autowired
    private User user1;

    public User getUser() {
        User user = user1;
        user.setName("阿巴阿巴");
        return user;
    }
}
